package com.ia.aistream.service.operating;

import com.ia.aistream.model.operating.dto.visio.VueVisioDto;
import com.ia.aistream.model.operating.dto.vue.DocResult;
import org.springframework.web.multipart.MultipartFile;

/***
 *  查询某个文档的所有数据
 * @author XiaoYu
 */
public interface IDocDocumentService {

    /**
     * 获取某个文档的所有信息
     *
     * @param docId
     * @return
     */
    public DocResult getDocResultService(Long docId, Integer tableSize);

    /***
     * 删除选中的文档
     * @param docId
     * @return
     */
    public int removeDocDataService(Long docId);

    /***
     * 实现公式的替换
     * @param flag
     * @param pid
     * @param data
     * @param index
     * @return
     */
    public int saveFormulaService(int flag, String pid, String data, int index) throws Exception;

    /***
     * 实现Visio文件的上传
     * @param file
     * @param flag
     * @param pid
     * @param index
     * @return
     * @throws Exception
     */
    public VueVisioDto uploadVisioService(MultipartFile file, int flag, String pid, int index) throws Exception;

///    public DocParagraphTable searchDataService(Long docId, Integer typeId);
}